package com.w.wx.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.util.HashMap;

@Data
public class Goods {

    private Integer gid;

    private String openid;

    @Excel(name = "物品名称", width = 25)
    private String goodsName;

    @Excel(name = "物品标题", width = 25)
    private String goodsTitle;

    @Excel(name = "物品现价", width = 25)
    private BigDecimal goodsPriceNew;

    @Excel(name = "物品原价", width = 25)
    private BigDecimal goodsPriceOld;

    @Excel(name = "物品描述", width = 25)
    private String goodsDec;

    @Excel(name = "发布者学院", width = 25)
    private String goodsXueyuan;



    @Excel(name = "交易地址", width = 25)
    private String goodsAddress;



    private Integer state;


    @Excel(name = "发布时间", width = 25)
    @DateTimeFormat(pattern="yyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date issueTime;


    @Excel(name = "审核时间", width = 25)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyy-MM-dd HH:mm:ss")
    private Date checkOk;

    @Excel(name = "浏览量", width = 25)
    private Integer openSum;

    private String homeImage;

    private HashMap<String,Object> imageUrl;

    //点赞量
    private Integer likeSum;
}